# -*-coding:utf-8 -*-
# File  : orgUserAdd_api.py
# Time  ：2021/11/23 10:46
# Author：author name


from api.manage.manage_base import ManageBase


class OrgUserAddApi(ManageBase):
    def __init__(self, username, real_name, phone, role_id, org_id):
        """
        机构用户添加接口
        :param username:
        :param real_name:
        :param phone:
        :param operator_id:
        :param role_id:
        :param org_id:
        """
        super().__init__()
        self.url = self.host + "cloudlottery-manage/orguser/add"
        self.json = {"sceneType": "STORE", "username": username,
                     "password": "Kus6tQNIo0YavrhkuSw7FGV0g7qHry+c0ZYZUcr3vRUdDN5sKY7r0RMTWv5UJs/MxWxmPjBaMIDzbCA4JlFIAz+gR7VW9bIRkKHYAKrPKbfIYv0EEl/FXfLDOVyDhbFASJE7YWjE4CMX4FR8U8q+x9/Cjvn3y0DIT4jm0X+wvAI=",
                     "realname": real_name, "phone": phone, "email": "", "operatorId": "", "remark": "",
                     "isSystemUser": 1, "roleId": role_id,
                     "orgId": org_id, "isFinancial": 0}
        self.method = "post"
